package routers

import (
	"github.com/gin-gonic/gin"
	"pic-text-mgr/handlers"
)

func Init() *gin.Engine {

	r := gin.Default()
	r.POST("/book/add", handlers.BookAdd)
	r.GET("/book/list", handlers.List)
	r.GET("/book/detail", handlers.Detail)
	r.Run(":8081")
	return r
}
